
#面向对象类中的成员方法的定义和使用

class Student:
    name=None

    def say_hi(self):
        print(f"hello,jingui,I am {self.name},以后多多关照")

    def say_hi2(self,msg):
        print(f"hello,I am {self.name},{msg}")



stu=Student()
stu.name="yifei liu"
stu.say_hi()
stu.say_hi2("you will get a good job!")